front end of edit case