added e.preventdefault; to avoid scrolling on long pages