use addEventListener instead of window.onload to prevent conflict on doff.