Added new window when running a query.