Added UndoManager support to augmentTab()