Use updateEndpoint method in rootViewController.