added chart controller