Switch submenuVisibility to use main menu item ID