updating routes and index view