Modify the procedure from data set to data view