gui added and basic segmentation