move browser detection