Return tokens to UI when viewing persistent queries