saving layer visibility on add layer to map