rename to index.html; added alert for losing