finalizes location search functionality for library page.