make fields appear conditionally if record exists