scrolling for preview dialog