added first segment collapse/expand functionality
Merge branch 'features/label-by-first-segment-59789196'