add auto-scroll feature