Minor improvements; hide the logout button if the view hasn't completed loaded, check if there is a globalclientmanager before calling logout.