implemented setup_domwindow_on_everyopen option