use mouseenter and mouseleave events instead of mouseover and mouseout