Add function for plugin to add layerGroup and persist display status between session