refactoring overlays: change layer and change el.innerHTML to el.appendCheld