Export the hover(on and off) function to be reusable.