autoClose logic simplified
API: Tab and tabContent