added index action to controller