preventing links from opening up or scrolling the page in the examples