change button type to submit