modifications to documents#index view