before primaryWindowField changes