Added redrawLegend function