updated the UI