add pagination to question index and search index