Refactor categorieview