Merge pull request #304 from MastodonC/feature/fix-render-item-dispatch

Fix render-item dispatch fn.
Fixed render-item dispatch.

And an annoying indentation issue.
Merge pull request #305 from MastodonC/feature/fix-render-dispatch

Fixed render-item dispatch.
Allow document upload to specify public