Apply changes to the ui