edit the CoreData