added the chart 1 functions and feeding into the site