added write and nfcOn Dialog