added routes, controllers, and layout