update app connection state ui.