added chart handler