handling layerLoadingStart/End events