fn save_ui( ctx: &mut EventCtx<'_>, app: &SimpleApp<Session>, preserve_state: PreserveState) -> Box<dyn State<SimpleApp<Session>>>