add collection view logic