register controller as a service