changed to window.load