change to use simpler onLoad event injection