added basic calculations within the view model and viewboxes to the user interface