formatting text and content in tooltip