pub fn call_gui_event(
    ui: &mut State,
    method: &str,
    args: Vec<Value>
) -> Result<(), String>