moving view model creation into page view