Update the user interface