updateUndoStack

Updates the undo stack for whiteboard.