some improvements to rich text labels