Added tab_change event hook