code cleanup for summary block on list view