change type from button to submit