added word search functionality