getting drop down list to work correctly