change query page