Update ui_logic