fix #1

Now creates new document when trying to add a part without an active
document.
source field is rendered in html
rerendered html
fixed error in table rendering
rerendered html