changes for displaying the posts