refactor browser