Chaned index paginator to view helper