Refactor the rendering.
Implement the render method in the application controller.