added updateUndoMenu, and updateUndoMenuButton methods added.