Name tabs snap onto states. Once snapped into place, they remain attached when the state moves or is copied. Simply select a name tab from the style bar, drag it near a state, and let it snap into place.