chart controller modified