Hiding the chart on click