updated controllers to use references to services