refactoring CalculatorViewImpl