implement collectionView and API connecting method