refactor MainActivity. Make it better used when listening to NFC beam data later.