fix the bug that dropdown menu doesn’t work. improve the speed.

fix the bug that dropdown menu doesn’t work. improve the speed.