Added method to choose tab from dropdown menu.