adding auto scroll feature & button click listener