edited instancing classes in DI Container