updated code for view all reports