popup must be added to panel before showing