add editing datasource code