allow the menu to contain invisible menu items and still work