working on clicking a field to query it