refactor dropdowns