adding directions element to infobox