some scrolling updates

you only use this variable in the else case, only doing the selection there should speed things up a bit