ui, functions: discovered that I cannot use the readonly in a function, because it makes the variable static between calls.