Redirect back to the correct URL after filling out a form. Also copied over missing controller for editing HTML forms from EMR module