rm undoState