Rather than submitting the form to the server, the cancel button should have a JS handler that just resets the page to its previous non-editory state