adding connection alert to index.html