|I end up passing a state parameter to all my ui functions.
I think it would be better to have something like "ui_method", so that each
ui_path creates a user defined object with all state variables needed to server
So I want ui_function to be ui_method.
field String x
ui_method app screen1
arg_rw MyApp app
text "x: "+x
var Link:MyApp app := new MyApp
Then we can put more fields into MyApp type.
Alternatively, we could definde a new type, ui_var which is global