proper scrolling during navigation