setting auto-scroll on generate