implement index.html handling