better tooltip positioning