fixing the route with different views and menus