refactor Browser initialization