add isPortSettingChanged func to check setting changed