submit form, when name is selected