fix for populating drop down list when toggling