Update panel on document save

The panel and the auto-complete list is now updated as the user saves the document.