code for deleting tasks is working