started work on edit function to edit fields of dn