add hide button to manually hide the chart.