add button.type="button" so it doesn't trigger a form submit anymore