Improve wait duration when master switch off
fix security bug where input can be seen after deleting a digit
use new gradle