adding the start of search functionality