fixed mix up in anchor references. tweaked the vertical scrolling method