added pagination for 7 posts per page