adds controllers and index action for each