Auto populate fields based on lookup table