convert to global function for FeedPopup