some small stuff

a. better handling keys status changed
b. clear input fields after message sent fixed
c. fixed some warnings
d. handle a nfc disabled or not exist