added checkbutton to enable command confirmation