added controller for charts