refactoring browser