menu build causes management dialog to close when in submenu