Adds documents index, changes controller to reflect needs