refactored code

it’s now easier to add browsing types