Reduced flicker when switching tab