Updating the UI after each action.