changes to mega report view and templates