added api service and controller