changing log message to 'window opened'