Event listeners for all types of tab changes