added refreshDigitButtons method