remember last connection in Preferences