fix controller so countries index won't display duplicates