Enabled undo/redo functionality