calculator updates when values change not only on "calculate" being pressed