fix scrolling contents on tablet and desktop views properly