Made tab container more efficient and fixed fake duplicate tabs.