added scripted tab switching to index.html