Added undo/redo functionality to the table editor