add a collectionview to the main view