persist state of segmented control values in menu

remove boilerplate