Modified menu_manager that handles multi-level menus.