Enable undo/redo when needed !