updates layer models on z_index change
Fixes bug where first layer is not selected on load