changed the page to render from route instead of model