updated the post view in the main page.