TODO: make index re-render properly after successful post creation