Updated dropdown function structure