added window persistence when session is not available