rename tabs correctly