make tab transition smoother