create routes and views