Add a feature to notify opener window
Merge from branch notify. Add event handler for OnLoadingStateChange