hooking up services and controllers to api