Fixing the performance issue for drop-down box