refactor dropdowninput
refactor dropdowninput