define populateComments function and commentedPosts scope to display comments on profile page