modifying click event on links