split popmenu into two cases