added delete functionality for tasks