the type of buttons should be "button", not "submit".

the "submit" buttons may submit the form by default. And the action may cause an unexcepted problem