improve addloadevent