indexing controller and view, model