inplemented the index.html file reader