Undo/redo sort of working for layers