added non connection alert function