Set active layer id after removing a layer from a visualization