Is it possible to pass variable from gateway scope to client scope?