updated routes and added index