Add click logic to index.html