update categories with viewable flag