Moved posts to model, paginated