working on removing all layers when a new layer is loaded