Delete functionality for tasks added