Moved code from cosmicViewController into cosmicCollectionViewController