use template for locate infowindow