ui for segmentation