created layout for BeforeScanActivity