move onload method