add hover effects when hovering over lengend