UI: remove existing popupmenu if another is clicked