handle fields with input options, add selected attribute