implement tabs priority