Adding chart controller