use GUI for queries