apply template to locate infowindow