fixed a typo in words controller
added pagination to words index page
customized pagination view