added removing duplicated tabs at onRemoved