integrated the calls from the model to the view to display sample data