add undo validity for CommandEdit