update Dependency injection and add routing