private void Controller_RefreshComplete()
        {
            travelHistoryControl1.RefreshButton(true);
            journalViewControl1.RefreshButton(true);
            actioncontroller.ActionRunOnRefresh();

            if (!Capi.IsCommanderLoggedin(EDCommander.Current.Name))
            {
                Capi.Logout();

                if (CompanionAPI.CompanionCredentials.CredentialState(EDCommander.Current.Name) == CompanionAPI.CompanionCredentials.State.CONFIRMED)
                {
                    try
                    {
                        Capi.LoginAs(EDCommander.Current.Name);
                        LogLine("Logged into Companion API");
                    }
                    catch (Exception ex)
                    {
                        LogLineHighlight("Companion API log in failed: " + ex.Message);
                        if (!(ex is CompanionAPI.CompanionAppException))
                        {
                            LogLineHighlight(ex.StackTrace);
                        }
                    }
                }
            }

            if (Capi.LoggedIn)
            {
                if (Controller.history != null && Controller.history.GetLast.ContainsRares())
                {
                    LogLine("Not performing Companion API get due to carrying rares");
                }
                else
                {
                    try
                    {
                        Capi.GetProfile();
                        OnNewCompanionAPIData?.Invoke(Capi, null);
                    }
                    catch (Exception ex)
                    {
                        LogLineHighlight("Companion API get failed: " + ex.Message);
                        if (!(ex is CompanionAPI.CompanionAppException))
                        {
                            LogLineHighlight(ex.StackTrace);
                        }

                        // what do we do TBD
                    }
                }
            }
        }