Update the Layers control when layers are added or removed