trigger on form submit, rather than button click