added back button handler to index.html