check for existance of window before assigning Facetr