Updating index, controller, and model