add view_category hook to stat