functional tab logic