implemented word pagination and sorting by word's name