Split document_compare methods
Update again doc compare function
Add 'update' button for each row of the table
Update templates