modified views and routes to make one page app