changed made to refresh the pickerView when value changes.