refactor menucontroller segmented control setting