Added delete function to task details page which removes task from list & redirects to home page.