add the scan view controller by carl