Undo function

Undo functions for complete and incomplete