adding window.onload