added feature for tooltip alignment