working version of callback after tooltip on hover and on click