Cleaning up index.html and experimenting with page change logic