auto populate input fields based on the dropdown selection