added method 'test' for word controller to replace index
modified index page so updates can be made to words