move call to index.html