list view template function