small fixes in layout from querywindow