added some classes and methods to collection view