add checks to CalcButton