Adding ajax search and infinite scroll to load contents,
ContentsController must be DRYed