reorganized the routes and controllers to properly display views