cleanup chart controller