also focus on the window when swithing tab