Refactor the section data source switching and implement deleting of tasks.