clean-up styles and apply labels