just before the UI change