Dependency injection for home view.