Update UI Logic.