adds mouseover and mouseout event on each pointA-B