changed input type from button to submit