Implemented CategoriesViewController as a UICollectionView delegate.