upgraded infowindow to infobox with dynamic data