merge table views, refactor mail and pdf