test debug shit for view problem
FIX!
Scanning and view switching works