fixed tooltip from going off screen