callback only when delete record