add pagination for words