first implementation of routes and views