before changing the menu