update t.d to support continue and cancel in actinve/inactive callbakc