store undoStack in the nestedtable