segmented control added and working