update form template

untested, should give an idea of what templates will look like
replace all the {$variables}