Added methods that makes the menu classes aware of submenus.