added routes and modified the layout app.