add event.preventDefault() for click on a link