updated router
added routes and separated views