Update UI and basic functions.