simple query search functionality added