solved onload problem