add some callbacks to Chart.html

similar to Results.html