adds controller and service logic