add directionality class to tooltip element