finish tab switch