refactoring browse activity