Added a method to get the current value of the tooltip