changed creating pinn infowindow logic