updated tool tip functions to use x,y position