added showLegend button