Finish search functionality