Added fields to all pages and added functionality to switch between
document types on source tab.