fix bug in creating legend
add mouseover tooltips to heatmap
add on click functions to heatmap