In the process of ctrlZ(), save changes