Create ui_logic