Optimizing the view models