Undo/redo works for new nodes added through insert method