Scan GUI: improvements to managing scans
Scan GUI: generate_scan() better check of duplicate