Update layer for selected entities when a layer is selected.
Merge pull request #440 from ajisaacs/master

Update layer for selected entities when a layer is selected.