Switch to the window's load event for kicking off the program's execution.