updated popular chapters logic in like model