Add click handler for road segments which outputs the pairId on the console