undo window on resize chosen update