refactoring Browser Controller