use form submit instead of button click