implemented receiver for communication between UI and service