refactor browseractivity