use switchTab plugin