Adding preventdefault for anchors