adding browser detection