moved new code to index.html