Update for undo redo