Add before_filter to categories