add form submit handler