Question: cupcakes are flat on top?
Answer: Measure out your baking soda or baking powder precisely. The recipe has an exact amount specified for a reason. Too much will cause the batter to overflow out of the muffin pan then deflate, while too little will make your cupcakes flat and sad since they couldn't rise enough.