add tooltip to segment rectangles