I am using nugget package to scan a document a get data. To open the scan I am using new instance of a class to be able to use the variables I initiated them in the method when