fix _form to work with both edit and new