add layersSwitcher function and styles