update checkbox and a button