add callbacks for onSubscribe data and onError