fixed adding a new layer to a visualization