add some niceness to the queries page and dialog