use ModuleStateEvent class where required