Charts controllers

fixed mistakes in charts controllers