refactor list_table_for helper