#25 change the menu item's state when the action is triggered