added Navigator class to manage menus