added segmented control to navigation bar