update: reload the layer selector after a new layer is added o removed