Changed how the layers get loaded onto the map to maintain the right order, and make sure the map gets reloaded after changing the layer order