what happens when the form is "submitted"