set basic form for query, modify array when submit button is clicked