Update some UI logic.