organize collectionView code