finish new word search functionality