rewrite reports views
refactoring