change input type from button to submit