adding lockdown protection on flash button