pre-registerwindow