updated the routes to include index