change onload to onopen