refactor scrolling (broke search)