added onLoadComplete event