Scanning and view switching works