add word list page and search filter

I've implement word list page and filter please review.
For RESTful
in controller, only 7 methods are index, show, new, create, edit, update. destroy. Nothing more
please write this function in index method