modified contend model to have a view model