working on submitting queries from the fields created after clicking on a field