Updated variables for tab changes