Changed main menu selector to be interchangeable between core and custom menus.