fixed button-state print-out