Changes in the view for edit the query to let the user modify the form of the query correctly.