add saving of custom fields