Improve future-modularity of updateUi()