Actions Undo and Redo
implementing undo and redo slots