added initial search functionality