implemented drag & drop sorting of segments