Created undo and redo commands