search and scroll debugged