added arrow alignment of tooltips dependent of position