Added the list of posts to the view