remove categories with only one element from details view