Made update windows after undo