Support for undo/redo feature