Optimized event handling on dropdown bar