updated to add basic data edit