modified getDropDown function