added functionality for deleting tasks