Added delegate and touch handling for the segmented view.