Updated to not use preferencemanager in internal class and to use a message if the user should be alerted that it is taking a while to connect