change button type from button to submit