addOverlay correction bugs
fixing bugs related to add and remove new layers and groups dynamically
update the example2.html with new corrections