Prevent canceling an edit from submitting anyways

Closes #123 

Without a `type` attribute, a button submits a form by default.