modified comments in toggleLegend