add addStartupListener event handler for simplifying modules loader and example in templateDemo