added a segmented control, but not working yet