fixed UI/dependency injection. demo works.