changes to routes, controller and views to make the master layout