Made "createDropdown" generic.