how to solve onload problem