bug fixes for dropdown menus