Implementing Segmented control.