managed some scrolling corner cases