update the ui for deleting tasks