moved IoC to ApplicationStartUp from EventHandler