refactor init browser intent