updated edit method to use new form