updated results scroll logic