add callback for broadcastreceiver