saving changes to domain model