Cutomize undo for Table Mode