There's no `var` here, putting `ui` in the global scope.