freeze / unfreeze window
window.freeze(false); // unfreeze window window.freeze(true): // freeze window
freeze window, if you must change many things in the UI.