Refactoring on updating view of TaskAdapter.