legend toggle added for heatmaps