refactor to break out the onepage-scroll stuff