updating total_likes dynamically