added generic method to select from a drop down list