Detects multiple windows are startup, not new windows yet. also cleaned up the code