Refactor the urls.
Remove unused variables.
Take the name from the model we're viewing.