Fixed controls overwriting the window.onload event