Refactored view to route.