working on the query bar and returning results