Now the tooltips will not appear out of screen