modified window load check to pass event param