fussy while feeding

So
My son is 5 months and formula fed. Lately he's been giving me a hard time while feeding. One second he'll want the bottle, the next he won't want any part of it. Can anybody give me some insight, could it be due to teething? Thanks