add windowOpenBegin/End