position, style, and handle clicks for the tooltip