added callback for tooltip