added option to undo task completion