improve scrolling code, still not there