added onResponseListener for rpc communication