Added code to register the main and footer menus