resolved the infinite loop problem in trending_events.html