Added code to create view model for the home page.