Fix form to define template of graphs
Update form for graph template definition