added first bits of undoredo