refactor infinite scroll
fixing search to avoid old style infinite scroll