Tweaked createToolTipWidget to allow resetting text