simplified viewModel (2 functions); updated view function calls