Added code for deleting tasks