added basic search functionality