add click action in index.html