Added layout and code for Scanning Activity (gate case)