Create notebook at program start.
Callback function when a tab is selected.
Callback function when a tab is reordered,
Update the tab title.
Return a shortest version for tab title based on config rule.
Append the given document as a new tab in the notebook.