fix disconnect method
correct browser detection