Add the query ui