extract ChartController, add chart.edit Route