Bounty #844 , fix for selecting the correct tab when clicking a dropdown menu item