are `button` and `inputBox` supposed to be globally scoped?