Add views and procedures for mass-diff, add template