Refactor SSID to networkID method