Update layer for selected entities when a layer is selected.