update main view to use collection view, fix issue with search bar