migrate tab switching