refactor ChartMenu