added index controller, routes