setting up intial route and view