added the callbacks for each response