Improving popup menu interaction.