preserving state on LayerItem