changes to ui, and pdf creation for diff pages.