add undo/redo submode