Dependency injection added for simple frontend