populate fields with values from the attribute