adds back mouseleave function