added chart 2 functions and connected to site