continues progress on edit function and tests