uaenative update, pass callback functions via global variables