improve tooltip positioning