adding on mouse out to reset legend