Fix popup layout