Set the flash message dialog of query view