added delete functionality for task