better declaration of model data in the view