allow template to set the onsubmit tag