detail view for ScanReport
code cleanup
fixed some bugs