Updates to query form