update code but posts/index doesn't render