Active tab logic