add delete function to task index page