adds scrolling functionality on post and page load