Add an hidden dialog to auto-hide the popup menu