//undo command uses new architecture - cUndoStack.