small stuff

a. some design for generate keys screen
b. fixed an issue while generating keys that caused sometimes to run
more then ones on the sensors