add onModuleLoaded method to app
 so that we can initialize all the object when all slicer module is loaded