Connecting visual elements to text