refactor with dropdownSelect