basic main auto-search functionality