modify legend fade when click