added models with function to set the data into the model and setting the record title.