the save button now also saves the state of menu items