adding a service to control cursor mode