Refactor comments list view to avoid repeat codes