changes for outline and syncing
sync editing and preview panes
intermediate commit
use captioned_title for outline
also select on table elements
obsolete code removed
moved some code to separate file
moved some code to separate file
lookup changed