New window blocking logic