taking out some of the redundant code in index.html