Added query to pages