renamed barchart to chart controller