add basic layer switcher (work in progress)