chage viewed_count to  badge