refactored posts to a single fetch function. added view count.