Query form changes to fix #85695

Viewer component has a new api config for expand query form only when toogle is pressed