Fixed the Delete functionality of the tasks. Added message after deletion