small fixes for undo/redo, issue #24
add buttons for undo/redo, finished issue #24