Add duplicate tab detection