reformat query display