Update user interface state.