Updated the HTML structure

Fixed the HTML structure, tab order, and disable functionality when
creating a new doc or in the menu. Styles are now working and buttons
work as expects. TODO: make sure we have a doc title before submitting.
TODO: there is a bug where submitting a blank citable results in an
infinite loop of header updates- probably because the headers are
there, so that function succeeds, but the initial amend continues to
fail. Validate the citation before sending. Must have date at least.