moved creation of views to the router