modefied generate report view