update checkbox ,buttons and dialog