change map details button bindness to support multiple legends (weird leaflet behaviour)
fix custom base layer url and state new version