Add implementation for `buttons`, `customButtons`, and `textFields`.

Also fix updating bug in `flow`.