functions needed to build in search bar scroll functionality