turned Dropdown into a reusable component