changed render for posts_controller