New tab control logic