guard around hiding {{popup-menu}}s