edit charts_controller add def index,edit