basic search functionality implemented