google chart and other functions