implements undo/redo for move function of point