connecting the controllers to the services