Update UI and other stuff.