change to graphtftng in two templates
update frontend-script for graphtftng