adds basic search functionality