[REV]Reverted previous changes and added onchange_chart_template_id for v7.