added click function for link in index.html