made chart controller thinner (moved to services)