added property “allowedToScan“ so that only on navigationController showing the result is pushed