added direction class to tooltips