added scrolling function for content