made ViewController the delegate of the collection view, implemented the collectionViewDidSelectItem method