Created new_tab_created_cb function