Optimization for tab navigation