making ScanOneTubeDialog work for more than one tube