use refs for scrolling DOM manipulation, that should make it reliable