added index, controller and routes