Move the code to change menu items to turnUnderpassOn/Off