Use tab names instead of index for tab switching logic