refine Tab enable/disable functions