addOverlay correction bugs
fixing bugs related to add and remove new layers and groups dynamically