restored previous behavior for switching tabs