add the create dataview function