finish tab panel switching