added an undo to doc transaction linkage