change query layout