Changed the text draw function and added link from dialog to text