fixes and undo-redo and pointerActions for beautify