Callback
onLayerSelected
Fix remove undo
Fix undo problem