Update UI procedure