fix event

Use onload instead of events