modify the ui and manage the network life circle