implemented Dropdown magic