configure the collection view cells and delegate methods