Fix button form submission

If type is not set, buttons inside forms act as a trigger to submit the form. See http://stackoverflow.com/questions/932653/how-to-prevent-buttons-from-submitting-forms.