Why does my new betta keep going to the top and blowing bubbles?

i just put my new betta in his new 5 gallon tank about a half hour ago and ive been watching him and he keeps swimming to the top, blowing bubbles and then going back down?
2 answers 2