working version independent new tab leaflet