changed the route to index