edit button for segments