Fixed bugs

+ fixed bugs when scan second time
+ fixed text view layout on valid/invalid activity