use layer titles to build layerswitcher tree hierarchy