replace scrolling code with scrolling widget