A couple fixes
Fixed layout function for prev-scrolling